<div class="middle">
	<div class="simple-container-left" id="page:main-container">
		<div class="container" id="page:container">
			<div class="main">
				<div class="content-container">
					<div class="content" id="content">
						<div class="content-header">
							<table class="grid-header" cellspacing="0" border="0" >
								<tbody>
									<tr>
										<td style=""><h3 class="icon-head head-customer">Manage Loan</h3></td>
										<td class="a-right">
											<button type="button" class="scalable back" onclick="setLocation('<?php echo $this->baseUrl; ?>/loan')" style=""><span>Search</span></button>
										<!--
											<button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Edit</span></button>
											<button type="button" class="scalable save" onclick="editForm.submit();" style=""><span>Add Payment</span></button>
										-->
                                                                                    </td>
									</tr>
								</tbody>
							</table>
						</div>
						<div id="messages"></div>

						<form name="form1" id="form1" action="/" method="post">
						<div class="entry-edit">
							<h4 class="icon-head head-edit-form fieldset-legend">Loan Information</h4>

                                                                    <table width="100%" border="0" cellspacing="0">
                                                                    <tr align="center">

                                                                        <td width="11%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/borrower/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Borrower</span></a></span></td>
                                                                        <td width="11%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/borrower/id/2" name="id" class="sort-arrow-asc"><span class="sort-title">Co-Borrower</span></a></span></td>
                                                                        <td width="15%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/business/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Business</span></a></span></td>
                                                                        <td width="15" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/collateral/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Collateral</span></a></span></td>
                                                                        <td width="9%" style="background-color:#eeeeee"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/view/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Loan</span></a></span></td>
                                                                        <td width="9%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/notes/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Notes</span></a></span></td>
                                                                        <td width="30%"></td>
                                                                    </tr>
								<table width="100%" cellspacing="10" border="0" style="background-color:#eeeeee" >
								<tbody>
							        <tr>
     							            <td>
                                                                         <table width="100%" cellspacing="0" border="0">
                                                                          <tr>
                                                                              <td width="50%">
                                                                                  <table width="100%" cellspacing="5" border="0">
                                                                                         <tr>
								                         <td width="50%">Loan ID<span class="required">*</span></td>
											 <td width="50%">1</td>
										     </tr>
										     <tr>
										    	 <td>Borrower ID <span class="required">*</span></td>
											 <td><input name="borrower_id" value="20080001" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Co-Borrower ID <span class="required">*</span></td>
											 <td><input name="borrower_id" value="20080002" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Collector ID <span class="required">*</span></td>
											 <td><input name="borrower_id" value="Nilo" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Date PN Signed <span class="required">*</span></td>
											 <td><input name="borrower_id" value="02/25/2008" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Surcharges <span class="required">*</span></td>
											 <td><input name="borrower_id" value="0" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Loan Status<span class="required">*</span></td>
											 <td>
												<select id="_loan_status_id" name="loan[status_id]" class="required-entry required-entry select" type="select">
												<option value="1">Inquiry</option>
												<option value="2">Application</option>
												<option value="1">Pending Approval</option>
												<option value="2">Pending Release</option>
												<option value="1">In Repayment</option>
												<option value="2">Paid In Full</option>
												<option value="1">Default</option>
												<option value="2">Denied</option>
												</select>
								                         </td>
										     </tr>
                                                                                  </table>

                                                                              </td>
                                                                              <td width="50%">
                                                                              <table width="100%" cellspacing="5" border="0">
                                                                                         <tr>
								                         <td width="50%">Total Loan Amount<span class="required">*</span></td>
                                                                                             <td><input name="borrower_id" value="10000" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Principal <span class="required">*</span></td>
											 <td><input name="borrower_id" value="9000" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Interest (%) <span class="required">*</span></td>
											 <td><input name="borrower_id" value="10" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Loan Payment (Days)<span class="required">*</span></td>
											 <td><input name="borrower_id" value="60" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Monthly Approved <span class="required">*</span></td>
											 <td><input name="borrower_id" value="5000" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Loan Start Date <span class="required">*</span></td>
											 <td><input name="borrower_id" value="02/28/2008" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
										     <tr>
										    	 <td>Total Amount Paid<span class="required">*</span></td>
                                                                                             <td><input name="borrower_id" value="300" class="required-entry required-entry input-text" type="text"></td>
										     </tr>
                                                                                  </table>

                                                                              </td>
                                                                          </tr>
                                                                         </table>
     							         <!--
								    <table width="100%" cellspacing="0" border="1">
								           <tbody>
                                                                                      <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Loan ID</td>
                      			                                              <td width="10%" style="background-color:#ffffff">1</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Total Loan Amount</td>
                      			                                              <td width="10%" style="background-color:#ffffff">10000</td>
                                                                                      </tr>
                                                                                       <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Borrower ID</td>
                      			                                              <td width="10%" style="background-color:#ffffff">20080001</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Principal</td>
                      			                                              <td width="10%" style="background-color:#ffffff">9000</td>
                                                                                      </tr>
                                                                                        <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Co-Borrower ID</td>
                      			                                              <td width="10%" style="background-color:#ffffff">20080002</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Interest (%)</td>
                      			                                              <td width="10%" style="background-color:#ffffff">10</td>
                                                                                      </tr>
                                                                                        <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Collector ID</td>
                      			                                              <td width="10%" style="background-color:#ffffff">Nilo</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Loan Payment (Days)</td>
                      			                                              <td width="10%" style="background-color:#ffffff">60</td>
                                                                                      </tr>
                                                                                        <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Date PN Signed</td>
                      			                                              <td width="10%" style="background-color:#ffffff">02/25/2008</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Monthly Approved</td>
                      			                                              <td width="10%" style="background-color:#ffffff">5000</td>
                                                                                      </tr>
                                                                                        <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Surcharges</td>
                      			                                              <td width="10%" style="background-color:#ffffff">0</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Loan Start Date</td>
                      			                                              <td width="10%" style="background-color:#ffffff">02/28/2008</td>
                                                                                      </tr>
                                                                                        <tr>
                                                                                          <td width="10%" style="background-color:#C6DEFF">Loan Status</td>
                      			                                              <td width="10%" style="background-color:#ffffff">In Repayment</td>
                      			                                              <td width="10%" style="background-color:#C6DEFF">Total Amount Paid</td>
                      			                                              <td width="10%" style="background-color:#ffffff">300</td>
                                                                                      </tr>

                                                                               </tbody>
								           </table>
								      -->
                                                                    </td>
                                                                    </tr>
                                                                    <tr>
                                                                    <td>
                                                                        <table width="100%" cellspacing="0" border="1" >
                                                                               <tr align="center" style="background-color:#C6DEFF" class="headings">
                                                                                   <td>Payment ID</td>
                                                                                   <td>Loan ID</td>
                                                                                   <td>Amount Due</td>
                                                                                   <td>Amount Due Date</td>
                                                                                   <td>Amount Paid</td>
                                                                                   <td>Amount Paid Date</td>
                                                                                   </tr>
                                                                                   <tr align="center" style="background-color:#eeeeee">
                                                                                   <td>1</td>
                                                                                   <td>1</td>
                                                                                   <td>150</td>
                                                                                   <td>02/29/08</td>
                                                                                   <td>150</td>
                                                                                   <td>02/29/08</td>
                                                                                   </tr>
                                                                                   <tr align="center" style="background-color:#ffffff">
                                                                                   <td>2</td>
                                                                                   <td>1</td>
                                                                                   <td>150</td>
                                                                                   <td>03/01/08</td>
                                                                                   <td>150</td>
                                                                                   <td>03/01/08</td>
                                                                                   </tr>
                                                                            </table>
                                                                    </td>
                                                                    </tr>
									</tbody>
								</table>

						</div>


						</form>
					</div>
				</div>

				<div class="section-menu" id="page:left">
					<h3>Loan Center</h3>
					<ul id="loan_info_tabs" class="tabs">
						<li>
					        <a href="<?php echo $this->baseUrl; ?>/loan" title="Loan" class="tab-item-link active">
				            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
							</div>Loan</span>
					        </a>
					    </li>
					    <li>
					        <a href="<?php echo $this->baseUrl; ?>/payments" title="View Loans" class="tab-item-link">
				            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
							</div>Payments</span>
					        </a>
					    </li>
					</ul>
					<div class="bottom"></div>
				</div>
          	</div>
		</div>
	</div>
</div>